package java19_1_8.interface_test.capacity;

/**
 * @author yuisama
 * @date 2022/01/08 12:09
 **/
public class Goose extends Animal implements IRun,ISwim,IFly{
    public Goose(String name) {
        super(name);
    }
    @Override
    public void eat(String food) {
        System.out.println(this.name + "正在吃" + food);
    }

    @Override
    public void fly() {
        System.out.println(this.name + "正在小飞一下~~");
    }

    @Override
    public void run() {
        System.out.println(this.name + "扇着翅膀跑~~");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "在水里游泳");
    }
}